package seGobangClient.mainMenu;

import seGobangClient.*;

/**
 *
 * @author plus
 */
public class CommandExitGame implements ICommand{

    public Object execute(Object Param) {
        if(Param==null){
            ((IMessageBox)GlobalController.getCurrentUISystem()).showMessageBox(
                    IMessageBox.TYPE_QUESTION, "退出游戏", "您确认要退出游戏吗？", "ExitGame");
        }else
            if ((Integer)Param==1) System.exit(0);        
        return null;
    }

    public Object undo() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
